import request from '@/utils/request'

// 监控对象下拉列表
export function getMonitoringList() {
  return request({
    url: '/dispatch/web/biaoge/config/monitoringList',
    method: 'get'
  })
}

// 刷新频率下拉列表
export function getRefreshList() {
  return request({
    url: '/dispatch/web/biaoge/config/refreshList',
    method: 'get'
  })
}

// 对齐方式下拉列表
export function getAlignList() {
  return request({
    url: '/dispatch/web/biaoge/config/alignList',
    method: 'get'
  })
}

// 筛选符号下拉列表
export function getSymbolList() {
  return request({
    url: '/dispatch/web/biaoge/config/symbolList',
    method: 'get'
  })
}

// 查询表格监控配置列表
export function getTableMonitorList(params) {
  return request({
    url: '/dispatch/web/biaoge/config/list',
    method: 'get',
    params
  })
}

// 获取表格监控配置详情
export function getTableMonitorDetail(id) {
  return request({
    url: `/dispatch/web/biaoge/config/${id}`,
    method: 'get'
  })
}

// 新增表格监控配置
export function addTableMonitor(data) {
  return request({
    url: '/dispatch/web/biaoge/config',
    method: 'post',
    data
  })
}

// 修改表格监控配置
export function updateTableMonitor(data) {
  return request({
    url: '/dispatch/web/biaoge/config',
    method: 'put',
    data
  })
}

// 删除表格监控配置
export function deleteTableMonitor(ids) {
  return request({
    url: `/dispatch/web/biaoge/config/${ids}`,
    method: 'delete'
  })
}